export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "ID",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: "名称",
      prop: "name",
      type: "input",
      rules: [{
        required: true,
        message: "请输入名称",
        trigger: "change"
      }]
    },
    {
      label: "简介",
      prop: "introduction",
      type: "input",
    },
    {
      label: "排序",
      tip: '越大排序越靠前',
      prop: "sort",
      type: "number",
    },
    {
      label: "状态",
      prop: "status",
      type: "radio",
      value: 0,
      dicData: [
        { label: '即将开始', value: 0 },
        { label: '正在进行', value: 1 },
        { label: '已结束', value: 2 },
      ]
    },
    {
      label: "封面",
      prop: "coverUrl",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请上传封面图",
        trigger: "change"
      }]
    },
    {
      label: "详情",
      prop: "details",
      component: 'AvueUeditor',
      options: {
        action: '/api/blade-resource/oss/endpoint/put-file',
        props: {
          res: "data",
          url: "link",
        }
      },
      hide: true,
      minRows: 6,
      span: 24,
    },
  ]
}
